<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2021/9/24
  Time: 17:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>HTML基础综合案例</title>
    <style>
        p {
            font-size: 15px;

        }

        #one {
            color: blue;
        }

        #f {
            color: red;
        }

        .button {
            background-color: #e1d8d8;
        }
    </style>
</head>
<body onload="alert('页面已经成功加载！')">

<div style="text-align:center">
    <form action="#" onsubmit="alert('name:'+name.value+'\r\n tel:'
    +tel.value+'\r\n sex:'+sex.value)">
        姓名：
        <input type="text" name="name">
        <br>
        tel:
        <input type="text" name="tel">
        <br>
        <input type="radio" name="sex" value="man">
        <span id="m">man</span>
        <input type="radio" name="sex" value="woman">
        <span id="f">woman</span>
        <br>
        <input class="botton" type="submit" name="enter">
        <input class="button" type="reset" name="reset">
    </form>

</div>
</body>
</html>
